function main(params) {
    var self = this;
    let id = params.id;
    const pageRootList = self.$$roots();
    debugger
    // 节点参数
    console.log(params);
    let regionType = params.data.columns.region_type;
    let pageTableList = rootPageElement.$$element("page_widget_list_gb0dt");

    let queryElementUnit = pageTableList.dataEngine.state.getElement("query_field_wrapper_6f9ts8");
    const queryProjectIdModelUnit = queryElementUnit.data.members[0];

    let queryElement = pageTableList.dataEngine.state.getElement("query_field_wrapper_44aqxy");
    const queryProjectIdModel = queryElement.data.members[0];

    let tableCondition = pageTableList.dataEngine.state.getElement("condition_a154yq");

    queryProjectIdModel.props.defaultValue.value = [];
    queryProjectIdModelUnit.props.defaultValue.value = [];


    if (regionType == '5' || regionType == '6') {
        id = id.replace('um_', "");
        api.EXEC_FORMULA("TREE_QUERY_CHILDRENS('476070ee-bdc6-4517-8c7b-34b2e9f9b992 ','" + id + "',['unit_id'])").then((res) => {
            var unitIdList = res.result;
            if (pageTableList) {
                if (pageTableList.dataEngine && pageTableList.dataEngine.state) {
                    queryProjectIdModelUnit.props.defaultValue.value = unitIdList;
                    if (tableCondition) {
                        tableCondition.onQuery();
                    }
                }
            }

        })
    } else {
        api.EXEC_FORMULA("TREE_QUERY_CHILDRENS('55770681-70d2-4a07-8b52-003751325ede','" + id + "',['region_id'])").then((res) => {

            let regionIdList = res.result;
            const communityList = regionIdList.filter(item => !item.startsWith("un_"));

            console.log(communityList);

            if (pageTableList) {
                if (pageTableList.dataEngine && pageTableList.dataEngine.state) {
                    queryElement.props.defaultValue.value = communityList;
                    if (tableCondition) {
                        tableCondition.onQuery();
                    }
                }
            }
        }).catch(err => {
            self.$message.error(err.message); // 显示错误提示信息
        });
    }
}
